<div th:fragment="control_condition_wbsrk">
	<script type="text/javascript">
		/**机构名称元数据 */
		function metadata_wbsrk(params) {
			params = $.extend({}, {
				CONTROL_ID : "ID",
				JGMC : {
					TEXT : "TILTLE"
				}
			}, params);
			return $.extend(new metadata_base(params), this);
		}
		/** 机构名称元数据视图 面板视图 */
		function metadata_view_wbsrk(control) {
			this.CONTROL_ID = function() {
				var metadataName = "CONTROL_ID";
				var view = $($("#" + metadataName).html());
				var metadata = this.control.getMetadata();
				var _this = this;
				var mValue = metadata[metadataName];
				$(view).find("input").val(mValue).keyup(function() {
					metadata[metadataName] = $(this).val();
					_this.linkageMetadata(metadataName, $(this).val());
				}).popoverBind();
				$(this.settingPanel).append(view);
			}
			this.JGMC = function() {
				var metadataName = "JGMC";
				var view = $($("#INPUT_JGMC").html());
				var metadata = this.control.getMetadata();
				var _this = this;
				var mValue = metadata[metadataName];
				$(view).find("input").val(mValue.TEXT).on({
					keyup : function() {
						mValue.TEXT = $(this).val();
						_this.linkageMetadata(metadataName, mValue);
					}
				}).popoverBind();
				$(this.settingPanel).append(view);
			}
			return $.extend(new metadata_view_base(control), this);
		}
		/** 机构名称 表单视图 */
		function metadata_form_view_wbsrk(control) {
			this.CONTROL_ID = function(value) {
				$(this.control).find(".list").attr("id", value);
			}
			this.JGMC = function(value) {
				$(this.control).find(".label-text").html(value.TEXT);
			}
			return $.extend(new metadata_form_view_base(control), this);
		}
	</script>
	<!-- 控制面板  下拉框 ID-->
	<script type="text/html" id="CONTROL_ID">
<div class="form-setting-group">
	<div class="controls">
		<label>控件ID<input data-content="该控件的唯一ID" data-trigger="manual"></label>
	</div>
</div>
</script>
	<!-- 控制面板  机构名称-->
<script type="text/html" id="INPUT_JGMC">
<div class="form-setting-group">
	<div class="controls">
		<label>控件标题<input data-content="该控件标题名称" data-trigger="manual"></label>
	</div>
</div>
</script>

	
</div>
